package com.demo.webapp.ui.access.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.core.Authentication;

import com.demo.webapp.ui.ComponentBase;
import com.demo.webapp.ui.access.PermissionsAdapter;

/**
 * 基于评估表达式的许可适配器
 * 
 * @author ryuu.kk
 */
public class ExpressionEvaluationPermissionsAdapter implements PermissionsAdapter<Authentication> {

	private String expressions;
	private HttpServletRequest request;
	public ExpressionEvaluationPermissionsAdapter(String expressions, HttpServletRequest request) {
		this.request = request;
		this.expressions = expressions;
	}
	@Override
	public boolean hasPermission(ComponentBase model, Authentication authentication) {
		// TODO Auto-generated method stub
		return true;
	}

}
